//
//  SelectBankCell.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2018/12/5.
//  Copyright © 2018年 DUONIU_MAC. All rights reserved.
//

import UIKit

class SelectBankCell: UICollectionViewCell {
    
    let titleLabel = UILabel()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        titleLabel.font = UIFont.systemFont(ofSize: RATIO(maxNum: 16))
        titleLabel.textAlignment = .center
        titleLabel.backgroundColor = UIColor.mineColor()
        self.contentView.addSubview(titleLabel)
        
        titleLabel.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(RATIO_H(maxNum: 10))
            make.bottom.equalToSuperview().offset(RATIO_H(maxNum: -10))
            make.left.equalToSuperview().offset(RATIO(maxNum: 10))
            make.right.equalToSuperview().offset(RATIO(maxNum: -10))
        }
        
        self.contentView.layoutIfNeeded()
        self.titleLabel.layer.cornerRadius = self.titleLabel.frame.size.height/2
        self.titleLabel.layer.masksToBounds = true
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
